package java19_1_21_exception;

/**
 * @author yuisama
 * @date 2022/01/21 12:23
 **/
class A{
    int numA = 10;
}
class B{
    int numB = 20;
}

public class E {
    class C extends A{}
    class D extends B{}

    public void test() {
        C c = new C();
        D d = new D();
        System.out.println(c.numA);
        System.out.println(d.numB);
    }

    public static void main(String[] args) {
        E e = new E();
        e.test();
    }
}